<?
//引入所有子系统信息
include_once("../../../common/model/extender_import.php");


//根据页面数量信息，筛选信息，创造url，供页码使用
include_once("script/set_url.php");


foreach ($_REQUEST['ai_school'] as $k=>$v)
{

    $detail_list[$k][0]=$_REQUEST['ai_name'][$k];
    $detail_list[$k][1]=$_REQUEST['ai_school'][$k];
    $detail_list[$k][2]=$_REQUEST['ai_grade'][$k];
    $detail_list[$k][3]=$_REQUEST['ai_class_'][$k];
    $detail_list[$k][4]=$_REQUEST['ai_phone'][$k];
    $detail_list[$k][5]=0;
}


$p['table']=$table_Prefix."member_child";
$p['items']=array("name","school","grade","class_","phone","member_nid");
$p['values']=$detail_list;


$sql_str=insert_datas($p);
$result=do_query($sql_str);

if($result)
{
    $_message="导入成功";
}
else
{
    $_message="导入失败";
}

?>

